#ifndef SHARED_SETUP_H_INCLUDED
#define SHARED_SETUP_H_INCLUDED

#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include <SDL/SDL_rwops.h>

int raw_getmetatable(lua_State *L);
int raw_setmetatable(lua_State *L);
int raw_getfenv(lua_State *L);
int raw_setfenv(lua_State *L);

SDL_RWops* GuacResourceRWops(lua_State *L, int idx);
const char* lua_Reader_RW(lua_State *L, void *data, size_t *size);

typedef struct
{
    FILE* fp;
    long origin;
    long endpoint;
} EmbeddedResource;

#endif // SHARED_SETUP_H_INCLUDED
